package com.lagou.demo03.service;

import com.lagou.demo03.dao.StudentDao;
import com.lagou.demo03.factory.StudentDaoFactory;
import com.lagou.demo03.factory.UserDaoFactory;
import com.lagou.demo03.model.Student;
import com.lagou.demo03.model.User;

public class StudentService {
    private StudentDao studentDao;
    public StudentService(){
        this.studentDao = StudentDaoFactory.getStudentDao();
    }

    /**
     * 自定义成员方法实现根据参数指定的Student对象来调用DAO层实现信息插入功能
     */
    public Student studentItemService(Student student){
        return studentDao.studentItem(student);
    }
}
